![]() ![]() |
Q: I have a Macintosh computer with multiple processors. I'd like to temporarily turn off one of the processors to test my Mac OS X product in a single-processor environment. How can I do that? A: For all Power Macintosh systems with Open
Firmware, you can change a setting to make the system
believe that there are fewer processors than are actually
present. You can use the Terminal application in Mac OS X to enter the Using the Mac OS X Terminal to Set the Number of Processors to OneThe following instructions work for Mac OS X only.
You must have the root or admin password in order to make this change.
You will use the Terminal application to issue the Step 1. Launch the Terminal application. The
Terminal application is found at Step 2. To see the current setting of
Step 3. Enter the following command
You will need to reenter the current value of
the
Step 4. Enter the root or administrator password when prompted. Step 5. Restart the system. The above command sets the An important caveat - the number of processors must be at least 1 and can't be greater than the number of processors physically present in the system. If you specify an invalid number of processors, your system may hang during the boot process. If this happens, you will need to "zap PRAM" as described in the next section "Clearing the "cpus" Setting." Note that you can also set the Clearing the "cpus" SettingThe 1. Use the Terminal application to clear the
This command sequence clears the value of
2. You can clear 3. Finally, you can clear the Setting the Number of Processors for Mac OS X using "cpus" in Open FirmwareYou can create the same To set the value of Step 1. Enter Open Firmware. Step 2. To see the current setting of
(Open Firmware aficionados may notice that Step 3. Enter the following command:
Note that there are no double quote characters used in this command line as there are when using the Terminal application. You will need to reenter the current value of
the command would read:
Step 3. After the "ok" response, enter
to continue the boot process. To clear this setting, refer to the options described above in the section "Clearing the "cpus" Setting." ReferencesTech Note 1061 Fundamentals of Open Firmware, Part I: The User Interface, Part I in the Open Firmware Technote Series Tech Note 2004 Debugging Open Firmware Using Telnet Tech Note 1062 Fundamentals of Open Firmware, Part II: The Device Tree Part II in the Open Firmware Technote Series [May 22 2002] |
Developer Documentation | Technical Notes | Development Kits | Sample Code |